package com.alkaid.manga.mapper;

import com.alkaid.commons.entity.MangaDetails;
import com.alkaid.commons.entity.MangaSource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Kylin
 */
@Mapper
public interface MangaDetailsMapper {

    /**
     * 查询相同Manga_id的漫画
     *
     * @param mangaId the manga id
     * @return the list
     */
    List<MangaDetails> findByMangaId(Integer mangaId);

    /**
     * 查询与id拥有相同manga_id的漫画
     *
     * @param id the id
     * @return the list
     */
    List<MangaDetails> findSameMangaIdById(Long id);

    /**
     * 根据小说ID查询作者
     *
     * @param id the id
     * @return the list
     */
    List<String> findAuthors(Integer id);

    /**
     * 根据小说详情ID查询小说内容
     *
     * @param mangaDetailsId the manga details id
     * @return the content
     */
    List<MangaSource> findSource(Long mangaDetailsId);
}
